<script >
export default{
    data(){
        return{
            item:0
        }
    },
    methods:{
        log(){
            alert('你碰了我!!!')
        },
        
    }
}
</script>

<template>  
<input type="button" value="v-on:click(全写)" v-on:click="item+=3">
<input type="button" value="v-on:click(缩写)" @click="item+=1">
<input type="button" value="事件绑定" @mouseenter="log">
	<input type="button" value="事件绑定" @dblclick="log">
<div>{{ item }}</div>
</template>

<style scoped>

</style>
